package com.yanqu.road.entity.systemgroup;

import java.util.ArrayList;
import java.util.List;

public class ResourceServerGroup {

    int groupId;

    int groupType;

    List<Long> serverList = new ArrayList<>();

    int resType;

    public int getGroupId() {
        return groupId;
    }

    public void setGroupId(int groupId) {
        this.groupId = groupId;
    }

    public int getGroupType() {
        return groupType;
    }

    public void setGroupType(int groupType) {
        this.groupType = groupType;
    }


    public List<Long> getServerList() {
        return serverList;
    }

    public void setServerList(List<Long> serverList) {
        this.serverList = serverList;
    }

    public void addServerId(long serverId){
        if(!serverList.contains(serverId)){
            serverList.add(serverId);
        }
    }

    public int getResType() {
        return resType;
    }

    public void setResType(int resType) {
        this.resType = resType;
    }
}
